package link;

public class Node {

    public int value ;
    public Node next;
    public Node(int data){
        this.value = data;
    }

    @Override
    public String toString() {
        return "Node{" +
                "value=" + value +
                ", next=" + next +
                '}';
    }
}
